home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•Games Parlour•
/
•Strategy•
/
Reversi ••••
/
Reversi
/
Reversi.rsrc
/
CODE_1.txt
< prev
next >
Wrap
Text File
|
1989-10-25
|
19KB
|
367 lines
# near model CODE resource
# jump table entries: 0-17 (18 of them)
export_0:
00000000 4EBA 01F4 jsr [PC + 0x1F4 /* 000001F6 */]
00000004 4E56 0000 link A6, 0
00000008 2C5F movea.l A6, [A7]+
0000000A 4E55 0000 link A5, 0
0000000E 9FED 0010 sub.l A7, [A5 + 0x10]
00000012 4EBA 01EA jsr [PC + 0x1EA /* 000001FE */]
00000016 4EAD 00CA jsr [A5 + 0xCA /* export_21 */]
0000001A 4EAD 00D2 jsr [A5 + 0xD2 /* export_22 */]
label0000001E:
0000001E A9B4 syscall SystemTask
00000020 4267 clr.w -[A7]
00000022 A861 syscall Random
00000024 3B5F F856 move.w [A5 - 0x7AA], [A7]+
00000028 4267 clr.w -[A7]
0000002A 3F3C FFFF move.w -[A7], 0xFFFF
0000002E 486D FBC8 pea.l [A5 - 0x438]
00000032 A970 syscall GetNextEvent
00000034 101F move.b D0, [A7]+
00000036 6700 009A beq +0x9C /* 000000D2 */
0000003A 302D FBC8 move.w D0, [A5 - 0x438]
0000003E 5340 subq.w D0, 1
00000040 6708 beq +0xA /* 0000004A */
00000042 5B40 subq.w D0, 5
00000044 6772 beq +0x74 /* 000000B8 */
00000046 6000 008A bra +0x8C /* 000000D2 */
label0000004A:
0000004A 4267 clr.w -[A7]
0000004C 2F2D FBD2 move.l -[A7], [A5 - 0x42E]
00000050 486D FBC2 pea.l [A5 - 0x43E]
00000054 A92C syscall FindWindow
00000056 3B5F FBC6 move.w [A5 - 0x43A], [A7]+
0000005A 302D FBC6 move.w D0, [A5 - 0x43A]
0000005E 5340 subq.w D0, 1
00000060 6712 beq +0x14 /* 00000074 */
00000062 5340 subq.w D0, 1
00000064 671C beq +0x1E /* 00000082 */
00000066 5340 subq.w D0, 1
00000068 6734 beq +0x36 /* 0000009E */
0000006A 5340 subq.w D0, 1
0000006C 6720 beq +0x22 /* 0000008E */
0000006E 5340 subq.w D0, 1
00000070 672C beq +0x2E /* 0000009E */
00000072 6042 bra +0x44 /* 000000B6 */
label00000074:
00000074 42A7 clr.l -[A7]
00000076 2F2D FBD2 move.l -[A7], [A5 - 0x42E]
0000007A A93D syscall MenuSelect
0000007C 4EAD 00B2 jsr [A5 + 0xB2 /* export_18 */]
00000080 6034 bra +0x36 /* 000000B6 */
label00000082:
00000082 486D FBC8 pea.l [A5 - 0x438]
00000086 2F2D FBC2 move.l -[A7], [A5 - 0x43E]
0000008A A9B3 syscall SystemClick
0000008C 6028 bra +0x2A /* 000000B6 */
label0000008E:
0000008E 2F2D FBC2 move.l -[A7], [A5 - 0x43E]
00000092 2F2D FBD2 move.l -[A7], [A5 - 0x42E]
00000096 486D FBDA pea.l [A5 - 0x426]
0000009A A925 syscall DragWindow
0000009C 6018 bra +0x1A /* 000000B6 */
label0000009E:
0000009E 42A7 clr.l -[A7]
000000A0 A924 syscall FrontWindow
000000A2 202D FBC2 move.l D0, [A5 - 0x43E]
000000A6 B09F cmp.l D0, [A7]+
000000A8 6708 beq +0xA /* 000000B2 */
000000AA 2F2D FBC2 move.l -[A7], [A5 - 0x43E]
000000AE A91F syscall SelectWindow
000000B0 6004 bra +0x6 /* 000000B6 */
label000000B2:
000000B2 4EAD 00C2 jsr [A5 + 0xC2 /* export_20 */]
label000000B6:
000000B6 601A bra +0x1C /* 000000D2 */
label000000B8:
000000B8 2B6D FBCA FBC2 move.l [A5 - 0x43E], [A5 - 0x436]
000000BE 2F2D FBC2 move.l -[A7], [A5 - 0x43E]
000000C2 A922 syscall BeginUpdate
000000C4 2F2D FBC2 move.l -[A7], [A5 - 0x43E]
000000C8 4EAD 00BA jsr [A5 + 0xBA /* export_19 */]
000000CC 2F2D FBC2 move.l -[A7], [A5 - 0x43E]
000000D0 A923 syscall EndUpdate
label000000D2:
000000D2 102D FBD9 move.b D0, [A5 - 0x427]
000000D6 6700 FF46 beq -0xB8 /* 0000001E */
000000DA 4EBA 01EE jsr [PC + 0x1EE /* 000002CA */]
000000DE 4E5D unlink A5
000000E0 4EBA 011A jsr [PC + 0x11A /* 000001FC */]
000000E4 4E75 rts
000000E6 4E5E unlink A6
000000E8 4E75 rts
000000EA D245 add.w D1, D5
000000EC 5645 addq.w D5, 3
000000EE 5253 addq.w [A3], 1
000000F0 4920 .invalid 4, -[A0] // invalid opcode 4 with b == 4
000000F2 0000 AC6E ori.b D0, 0x6E /* 'n' */
export_7: // at 000000F4 (misaligned)
export_4:
000000F6 4E56 FFCE link A6, -0x0032
000000FA 41EE FFCE lea.l A0, [A6 - 0x32]
000000FE 216E 000E 0012 move.l [A0 + 0x12], [A6 + 0xE]
00000104 316E 000C 0016 move.w [A0 + 0x16], [A6 + 0xC]
0000010A 4228 001A clr.b [A0 + 0x1A]
0000010E 4228 001B clr.b [A0 + 0x1B]
00000112 42A8 001C clr.l [A0 + 0x1C]
00000116 A000 syscall Open/PBHOpen/HOpen
00000118 226E 0008 movea.l A1, [A6 + 0x8]
0000011C 32A8 0018 move.w [A1], [A0 + 0x18]
00000120 3D40 0012 move.w [A6 + 0x12], D0
00000124 4E5E unlink A6
00000126 205F movea.l A0, [A7]+
00000128 DFFC 0000 000A add.l A7, 0xA /* '\n' */
0000012E 4ED0 jmp [A0]
export_3:
00000130 4E56 FFCE link A6, -0x0032
00000134 41EE FFCE lea.l A0, [A6 - 0x32]
00000138 316E 0008 0018 move.w [A0 + 0x18], [A6 + 0x8]
0000013E A001 syscall Close
00000140 3D40 000A move.w [A6 + 0xA], D0
00000144 4E5E unlink A6
00000146 205F movea.l A0, [A7]+
00000148 548F addq.l A7, 2
0000014A 4ED0 jmp [A0]
export_5:
0000014C 51C1 sf D1
0000014E 6002 bra +0x4 /* 00000152 */
export_6:
00000150 50C1 st D1
label00000152:
00000152 4E56 FFCE link A6, -0x0032
00000156 41EE FFCE lea.l A0, [A6 - 0x32]
0000015A 216E 0008 0020 move.l [A0 + 0x20], [A6 + 0x8]
00000160 316E 0010 0018 move.w [A0 + 0x18], [A6 + 0x10]
00000166 226E 000C movea.l A1, [A6 + 0xC]
0000016A 2151 0024 move.l [A0 + 0x24], [A1]
0000016E 4268 002C clr.w [A0 + 0x2C]
00000172 42A8 002E clr.l [A0 + 0x2E]
00000176 4A01 tst.b D1
00000178 6604 bne +0x6 /* 0000017E */
0000017A A002 syscall Read
0000017C 6002 bra +0x4 /* 00000180 */
label0000017E:
0000017E A003 syscall Write
label00000180:
00000180 3D40 0012 move.w [A6 + 0x12], D0
00000184 226E 000C movea.l A1, [A6 + 0xC]
00000188 22A8 0028 move.l [A1], [A0 + 0x28]
0000018C 4E5E unlink A6
0000018E 225F movea.l A1, [A7]+
00000190 DFFC 0000 000A add.l A7, 0xA /* '\n' */
00000196 4ED1 jmp [A1]
export_1:
00000198 4E56 FFB0 link A6, -0x0050
0000019C 41EE FFB0 lea.l A0, [A6 - 0x50]
000001A0 216E 0012 0012 move.l [A0 + 0x12], [A6 + 0x12]
000001A6 316E 0010 0016 move.w [A0 + 0x16], [A6 + 0x10]
000001AC 4228 001A clr.b [A0 + 0x1A]
000001B0 A008 syscall Create/PBHCreate/HCreate
000001B2 4A40 tst.w D0
000001B4 6616 bne +0x18 /* 000001CC */
000001B6 4268 001C clr.w [A0 + 0x1C]
000001BA A00C syscall GetFileInfo/PBHGetFInfo/HGetFileInfo
000001BC 2008 move.l D0, A0
000001BE 43E8 0020 lea.l A1, [A0 + 0x20]
000001C2 22EE 0008 move.l [A1]+, [A6 + 0x8]
000001C6 22AE 000C move.l [A1], [A6 + 0xC]
000001CA A00D syscall SetFileInfo/PBHSetFInfo/HSetFileInfo
label000001CC:
000001CC 3D40 0016 move.w [A6 + 0x16], D0
000001D0 4E5E unlink A6
000001D2 225F movea.l A1, [A7]+
000001D4 DFFC 0000 000E add.l A7, 0xE
000001DA 4ED1 jmp [A1]
export_2:
000001DC 225F movea.l A1, [A7]+
000001DE 201F move.l D0, [A7]+
000001E0 2F09 move.l -[A7], A1
000001E2 A032 syscall FlushEvents
000001E4 4E75 rts
export_9:
000001E6 7401 moveq.l D2, 0x01
label000001E8:
000001E8 205F movea.l A0, [A7]+
000001EA 3F02 move.w -[A7], D2
000001EC 2F08 move.l -[A7], A0
000001EE ADEA syscall Pack3, auto_pop
export_8:
000001F0 7402 moveq.l D2, 0x02
000001F2 4EFA FFF4 jmp [PC - 0xC /* 000001E8 */]
fn000001F6:
000001F6 42AF 0010 clr.l [A7 + 0x10]
000001FA 4E75 rts
fn000001FC:
000001FC 4E75 rts
fn000001FE:
000001FE 205F movea.l A0, [A7]+
00000200 4E5D unlink A5
00000202 4ED0 jmp [A0]
export_10:
00000204 2F00 move.l -[A7], D0
00000206 2F01 move.l -[A7], D1
00000208 202F 0010 move.l D0, [A7 + 0x10]
0000020C 222F 000C move.l D1, [A7 + 0xC]
00000210 4EBA 0032 jsr [PC + 0x32 /* 00000244 */]
00000214 2F41 0010 move.l [A7 + 0x10], D1
00000218 221F move.l D1, [A7]+
0000021A 201F move.l D0, [A7]+
0000021C 2F57 0004 move.l [A7 + 0x4], [A7]
00000220 588F addq.l A7, 4
00000222 4E75 rts
export_11:
00000224 2F00 move.l -[A7], D0
00000226 2F01 move.l -[A7], D1
00000228 202F 0010 move.l D0, [A7 + 0x10]
0000022C 222F 000C move.l D1, [A7 + 0xC]
00000230 4EBA 0012 jsr [PC + 0x12 /* 00000244 */]
00000234 2F40 0010 move.l [A7 + 0x10], D0
00000238 221F move.l D1, [A7]+
0000023A 201F move.l D0, [A7]+
0000023C 2F57 0004 move.l [A7 + 0x4], [A7]
00000240 588F addq.l A7, 4
00000242 4E75 rts
fn00000244:
00000244 48E7 3E00 movem.l -[A7], D2,D3,D4,D5,D6
00000248 2A00 move.l D5, D0
0000024A 6A02 bpl +0x4 /* 0000024E */
0000024C 4480 neg.l D0
label0000024E:
0000024E 2C01 move.l D6, D1
00000250 6A02 bpl +0x4 /* 00000254 */
00000252 4481 neg.l D1
label00000254:
00000254 2400 move.l D2, D0
00000256 2601 move.l D3, D1
00000258 4280 clr.l D0
0000025A 4281 clr.l D1
0000025C 781F moveq.l D4, 0x1F
label0000025E:
0000025E E392 roxl D2, 1
00000260 E390 roxl D0, 1
00000262 E389 lsl D1, 1
00000264 B083 cmp.l D0, D3
00000266 6D04 blt +0x6 /* 0000026C */
00000268 9083 sub.l D0, D3
0000026A 5281 addq.l D1, 1
label0000026C:
0000026C 5344 subq.w D4, 1
0000026E 6CEE bge -0x10 /* 0000025E */
00000270 4A85 tst.l D5
00000272 6A02 bpl +0x4 /* 00000276 */
00000274 4480 neg.l D0
label00000276:
00000276 BB86 xor.l D6, D5
00000278 6A02 bpl +0x4 /* 0000027C */
0000027A 4481 neg.l D1
label0000027C:
0000027C 4CDF 007C movem.l D2,D3,D4,D5,D6, [A7]+
00000280 4E75 rts
export_16:
00000282 4E75 rts
export_15:
00000284 2E9F move.l [A7], [A7]+
00000286 4E75 rts
export_17:
00000288 2E9F move.l [A7], [A7]+
0000028A 4E75 rts
0000028C 48E7 C0C0 movem.l -[A7], D0,D1,A0,A1
00000290 7201 moveq.l D1, 0x01
00000292 6006 bra +0x8 /* 0000029A */
export_12:
00000294 48E7 C0C0 movem.l -[A7], D0,D1,A0,A1
00000298 4241 clr.w D1
label0000029A:
0000029A 206F 0018 movea.l A0, [A7 + 0x18]
0000029E 226F 0014 movea.l A1, [A7 + 0x14]
000002A2 4240 clr.w D0
000002A4 1018 move.b D0, [A0]+
000002A6 B019 cmp.b D0, [A1]+
000002A8 660E bne +0x10 /* 000002B8 */
000002AA 6004 bra +0x6 /* 000002B0 */
label000002AC:
000002AC B308 cmpm.b [A1]+, [A0]+
000002AE 6608 bne +0xA /* 000002B8 */
label000002B0:
000002B0 5340 subq.w D0, 1
000002B2 6AF8 bpl -0x6 /* 000002AC */
000002B4 0A41 0001 xori.w D1, 0x1
label000002B8:
000002B8 1F41 001A move.b [A7 + 0x1A], D1
000002BC 2F6F 0010 0016 move.l [A7 + 0x16], [A7 + 0x10]
000002C2 4CDF 0303 movem.l D0,D1,A0,A1, [A7]+
000002C6 5C8F addq.l A7, 6
000002C8 4E75 rts
fn000002CA:
000002CA 205F movea.l A0, [A7]+
000002CC 4E55 0000 link A5, 0
000002D0 4ED0 jmp [A0]
export_13:
000002D2 48E7 E0E0 movem.l -[A7], D0,D1,D2,A0,A1,A2
000002D6 302F 001C move.w D0, [A7 + 0x1C]
000002DA 206F 001E movea.l A0, [A7 + 0x1E]
000002DE 43EF 0022 lea.l A1, [A7 + 0x22]
000002E2 3400 move.w D2, D0
000002E4 E54A lsl D2.w, 2
000002E6 D2C2 add.w A1, D2
000002E8 4241 clr.w D1
000002EA 5288 addq.l A0, 1
000002EC 6010 bra +0x12 /* 000002FE */
label000002EE:
000002EE 2461 movea.l A2, -[A1]
000002F0 4242 clr.w D2
000002F2 141A move.b D2, [A2]+
000002F4 D242 add.w D1, D2
000002F6 6002 bra +0x4 /* 000002FA */
label000002F8:
000002F8 10DA move.b [A0]+, [A2]+
label000002FA:
000002FA 5342 subq.w D2, 1
000002FC 6AFA bpl -0x4 /* 000002F8 */
label000002FE:
000002FE 5340 subq.w D0, 1
00000300 6AEC bpl -0x12 /* 000002EE */
00000302 206F 001E movea.l A0, [A7 + 0x1E]
00000306 1081 move.b [A0], D1
00000308 43EF 0022 lea.l A1, [A7 + 0x22]
0000030C 302F 001C move.w D0, [A7 + 0x1C]
00000310 E548 lsl D0.w, 2
00000312 D2C0 add.w A1, D0
00000314 232F 0018 move.l -[A1], [A7 + 0x18]
00000318 2F49 0018 move.l [A7 + 0x18], A1
0000031C 4CDF 0707 movem.l D0,D1,D2,A0,A1,A2, [A7]+
00000320 2E5F movea.l A7, [A7]+
00000322 4E75 rts
export_14:
00000324 48E7 E0C0 movem.l -[A7], D0,D1,D2,A0,A1
00000328 206F 0018 movea.l A0, [A7 + 0x18]
0000032C 302F 001C move.w D0, [A7 + 0x1C]
00000330 322F 001E move.w D1, [A7 + 0x1E]
00000334 5341 subq.w D1, 1
00000336 226F 0020 movea.l A1, [A7 + 0x20]
0000033A 4242 clr.w D2
0000033C 1419 move.b D2, [A1]+
0000033E 9441 sub.w D2, D1
00000340 9440 sub.w D2, D0
00000342 6D1E blt +0x20 /* 00000362 */
00000344 D2C1 add.w A1, D1
00000346 10C0 move.b [A0]+, D0
00000348 6002 bra +0x4 /* 0000034C */
label0000034A:
0000034A 10D9 move.b [A0]+, [A1]+
label0000034C:
0000034C 5340 subq.w D0, 1
0000034E 6AFA bpl -0x4 /* 0000034A */
label00000350:
00000350 2F6F 0014 0020 move.l [A7 + 0x20], [A7 + 0x14]
00000356 4CDF 0307 movem.l D0,D1,D2,A0,A1, [A7]+
0000035A DFFC 0000 000C add.l A7, 0xC
00000360 4E75 rts
label00000362:
00000362 4210 clr.b [A0]
00000364 60EA bra -0x14 /* 00000350 */
00000366 8100 sbcd D0, D0
00000368 0008 0000 ori.b A0, 0x0
0000036C 0366 bchg -[A6], D1